home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94b.txt / 000014_icon-group-sender _Tue Aug 23 16:46:59 1994.msg < prev    next >
Internet Message Format  |  1995-02-09  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Tue, 23 Aug 1994 16:47:14 MST
  2. Date: Tue, 23 Aug 1994 16:46:59 MST
  3. From: "Ralph Griswold" <ralph>
  4. Message-Id: <199408232346.AA12612@cheltenham.cs.arizona.edu>
  5. To: NOR0048@applelink.apple.com
  6. Subject: Re:  ProIcon 2.0 and LF chars
  7. Cc: icon-group
  8. Errors-To: icon-group-errors@cs.arizona.edu
  9.  
  10. Icon uses the C I/O library.  In the default file mode, there is translation
  11. of input and output files so that internal routines always see
  12. the same thing regardless of platform.  This is not ProIcon nor Macintosh
  13. specific.  It's more of a problem under MS-DOS, where a line terminator
  14. consists of two characters.
  15.  
  16. What you want to do is use the second argument to open (see the ProIcon
  17. manual, page 11-58).  open(s, "t"), the default mode, does translation.
  18. open(s, "u") does not.  The "u" mode is necessary for binary files, but
  19. can be used for text files.  The only problem is that there's no way
  20. to read standard input or write standard output in untranslated mode.
  21.